import request from '@/util/service';

// 自定义
export const api = (url, method, data, query) => {
    return request({
        url,
        method,
        data,
        params: query
    });
};
//登录
export const login = (data) => {
    return request({
        url: "/user/login",
        method: 'post',
        data
    });
};

export const register = (data) => {
    return request({
        url: "/user/register",
        method: 'post',
        data
    });
};

